package jude.java.money.provide;

import java.util.ArrayList;
import java.util.List;

public class SimpleProvider<T> extends BaseProvider<T> {
	
	private List<T> rs;
	
	public SimpleProvider(T... os) {
		this.rs = new ArrayList<T>();
		for (int i = 0; i < os.length; i++) {
			this.rs.add(os[i]);
		}
	}
	
	public SimpleProvider(List<T> os) {
		this.rs = os;
	}
	
	protected List<T> loadRecords() {
		return rs;
	}

	public void addItem(T o) {
		rs.add(o);
	}
}
